<%-- 
    Document   : Content_MuaDealChuaDangNhap
    Created on : Oct 25, 2011, 3:34:02 PM
    Author     : Administrator
--%>

<%@page import="pojo.Deal"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%
    if(session.getAttribute("Oder")==null){
        response.sendRedirect("index.jsp");
    }else{
        Deal deal= (Deal) session.getAttribute("Oder"); 
%>
<script type="text/javascript">
    //<![CDATA[
   var  strBuyDeal={"id":"7F0105010C7C","giaban":"<%=deal.getGiaDaGiam()%>","slmua":"<%=deal.getSoLuongDealTrenMotNguoi()%>","status":"False"};var strStateNM='ha-noi';//]]>
</script>
<div class="div_LBodyInfo BodySignin">
                	<i class="div_LBodyTop"> </i>

                    <div class="div_Order">
                    	<div class="div_bgOrder"></div>
                    	<p class="pOrder styleText6"><strong>Đơn Hàng Của Bạn</strong></p>
                    	
                    </div>
                    
                    <div class="div_ListOrder ">
                    	<div class="div_TextListOrder">
                    	    <div class="div_STT">STT</div>
                        	<div class="div_TextProDV">Sản Phẩm / Dịch Vụ</div>

                            <div class="div_TextSL">Số Lượng</div>
                             <div class="div_TextGia">Đơn Giá</div>
                             <div class="div_TextToTal">Thành Tiền</div>
                        </div>
                        <div id="div_MainListOrder" class="div_MainListOrder">
                            <table width='100%' cellspacing='0' cellpadding='0' border='0' class='reference'>
                                <tbody>
                                    <tr class='trfirst'>
                                        <th class='thSL'' valign='top'>1</th><th class='th_TextProDV'  valign='top' align='left'>
                                            <a href='xl_DealDetail?Action=view&DealID=<%=deal.getId()%>' ><%= deal.getTileSmallDeal()%></a>
                                        </th>
                                        <th class='th_SL' valign='top' align='left' >
                                <div class='div_txtDayDK monthDK'>
                                    <select autocomplete='off' id='ddlSL_0' name='ddlSL_0' class='ddlDWBirth'>
                                           <%
                                            int soLuongDealToiDaDuocMua=deal.getSoLuongDealTrenMotNguoi();
                                            if(soLuongDealToiDaDuocMua==1){%>
                                                <option value='1'selected='selected'>1</option>
                                            <%}else{%>
                                                <option value='1'selected='selected'>1</option>
                                            <%for(int i=2;i<=soLuongDealToiDaDuocMua;i++){%>
                                            <option value='<%=i%>'><%=i%></option>
                                         <%}}%>
                                    </select>
                                </div>
                            </th>
                            <th class='th_Gia' valign='top' align='center'>
                                <span id='spnGia'><%=deal.getGiaDaGiam()%> VND</th>
                            <th class='th_Total' valign='top' align='center'>
                                <span id='spnTongGia'><%=deal.getGiaDaGiam()%> VND</th>
                            </tr>
                            </tbody>
                            </table>
                        </div>

                      <div class="div_buttonUpdateMH ">
                        <input name="txtAmount" type="hidden" id="txtAmount" disabled="disabled" value="1" />
                        <p id="pTotal" class="pTotalMoney styleText15"><%=deal.getGiaDaGiam()%> VND</p><p class="pTextTotalMH styleText15">Tổng số tiền :</p>
                        <div class="div_MainUpdateMH "><a href="javascript:void(0)" class="btnUpdateMH">Cập Nhập</a></div>
                     </div>
                   </div>
                
                </div>

                   <div class="div_LBottomInfo"> </div>            
              <div class="div_Company ">
                	<div class="div_TopCom"></div>
                    	<div class="div_bodyCom bOrderSI">
                    	<div style="padding-top: 20px; padding-bottom: 20px; margin-left: 65px;">
                    	<p id="pTitle1" class="pNotiDHMC styleText2">Bạn sẽ nhận được thẻ do nhómMua.com cung cấp sau khi thanh toán.</p>                    
                   <div id="divCard" class="div_LogoDHMC"><img width='405px' height='244px' alt='H3 HOTPOT & GRILL - 09/2011' src='http://www.nhommua.net/Upload/100727/1418/voucher_small/201191711946147.jpg' /></div>
                   <div id="divDieuKien" class="color21 pTitleDH" style="text-align: center; width: 556px;padding-top:10px">Bạn phải đem theo thẻ này đến NHÀ HÀNG H3 HOTPOT & GRILL để sử dụng dịch vụ!</div>

                   
                   </div>
                   
                    	<div id="divTitleSignUp" class="div_titleRO">Đăng Ký Nhanh Để Mua!</div>
                        <form method="POST" action="xl_DangKy_Mini" >
                      <ul class="ulSI ">
        	            <li><p class="p_txtDK"><span class="colorRed">*</span>Email:</p>
        	            <div class="div_txtDK">
                            		<i class="txt_tlW"></i>
                                	<i class="txt_ctW"></i>

                                	<i class="txt_trW"></i>
                                	<div class="txt_clW">	
					                    <div class="txt_crW">			
						                    <div class="txt_inner">
							                    			
							                    <input id="txtSUBEmail" name="txtSUBEmail" type="text"  autocomplete="off">											
							                    
						                    </div>
					                    </div>
			                  	</div>
                                <i class="txt_blW"></i>
                                <i class="txt_cbW"></i>

                                <i class="txt_brW"></i>
                        </div>
                        <p id="pSUBEmail" class="styleText10 color10" autocomplete="off"></p>
        	           </li>
        	             <li><p class="p_txtDK"><span class="colorRed">*</span>Ký Danh:</p>
                               <div class="div_txtSI">
                            		<i class="txt_tlW"></i>
                                	<i class="txt_ctW"></i>

                                	<i class="txt_trW"></i>
                                	<div class="txt_clW">	
					                    <div class="txt_crW">			
						                    <div class="txt_inner">
							                    			
							                    <input id="txtSUBNick" name="txtSUBNick" type="text">											
							                    
						                    </div>
					                    </div>
			                  	</div>
                                <i class="txt_blW"></i>
                                <i class="txt_cbW"></i>

                                <i class="txt_brW"></i>
                              </div>
                              <p id="pSUBNick" class="styleText10 color10"></p>
        	            </li>
        	             <li><p class="p_txtDK"><span class="colorRed">*</span>Mật Khẩu:</p>
        	            <div class="div_txtDK">
                            		<i class="txt_tlW"></i>
                                	<i class="txt_ctW"></i>

                                	<i class="txt_trW"></i>
                                	<div class="txt_clW">	
					                    <div class="txt_crW">			
						                    <div class="txt_inner">
							                    			
							                    <input id="txtSUBPass" name="txtSUBPass" type="password">											
							                    
						                    </div>
					                    </div>
			                  	</div>
                                <i class="txt_blW"></i>
                                <i class="txt_cbW"></i>

                                <i class="txt_brW"></i>
                        </div>
                        <p class="styleText10 color10" id="pSUBPass"></p>
        	           </li>
        	             <li><p class="p_txtDK"><span class="colorRed">*</span>Xác Nhận MK:</p>
        	            <div class="div_txtDK">
                            		<i class="txt_tlW"></i>
                                	<i class="txt_ctW"></i>

                                	<i class="txt_trW"></i>
                                	<div class="txt_clW">	
					                    <div class="txt_crW">			
						                    <div class="txt_inner">
							                    			
							                    <input id="txtSUBRePass" name="txtSUBRePass" type="password" >											
							                    
						                    </div>
					                    </div>
			                  	</div>
                                <i class="txt_blW"></i>
                                <i class="txt_cbW"></i>

                                <i class="txt_brW"></i>
                        </div>
                        <p class="styleText10 color10" id="pSUBRePass"></p>
        	           </li>
                           <li class="libtnDN"><div class="btnDNSI"><input id="btnSUBuy" value="Đăng Ký " class="btnGui" type="submit"></div>
        	            
        	             <!--li class="libtnDN"><div class="btnDNSI"><a id="btnSUBuy" href="javascript:void(0)" class="btnGui">Đăng Ký</a></div!-->
        	            
        	             </li>
        	             
        	        </ul>
                        </form>
        	      <%
                        if(session.getAttribute("DaDangNhap")!=null){
                      %>
                    <div class="div_RSIOrder">

        	            <i class="tl_SIO"></i >
        	            <i  class="ct_SIO"></i >
        	            <i  class="tr_SIO"></i >
        	            <div class="div_innerROSI">
        	                <p class="pROSI1">Bạn đã đăng nhập thành công</p>
        	                <p class="pNoteOSI">Bấm nút tiếp để tiếp tục thực hiện thanh toán</p>
        	                <div class="btnDNSI">
        	                     <a href="MuaDealDaDangNhap.jsp" id="btnSIBuy" class="btnGui">Tiếp Tục >></a>

        	                </div>
        	                <p class="styleText10 color10 pMess_ROSI"><em> </em></p>
        	                <div class="liLinkSI">
        	                <p class="OrselectOS" style="padding-left:13px;width:auto">Hoặc sử dụng Tài Khoản của DiaDiem</a>
        	               
        	                </div>
        	            </div>
        	            <i  class="bl_SIO"></i >
        	            <i  class="ct_SIO"></i >

        	            <i  class="br_SIO"></i >
        	        </div>  
                    <%}else{%>
                    <div class="div_RSIOrder">

        	            <i class="tl_SIO"></i >
        	            <i  class="ct_SIO"></i >
        	            <i  class="tr_SIO"></i >
        	            <div class="div_innerROSI">
        	                <p class="pROSI1">Bạn hãy đăng nhập để mua hàng</p>
        	                <p class="pNoteOSI">Hoặc đăng ký nếu chưa có tài khoản</p>
        	                <div class="btnDNSI">
        	                     <a href="javascript:void(0)" id="btnSIBuy" class="btnGui">Đăng Nhập</a>

        	                </div>
        	                <p class="styleText10 color10 pMess_ROSI"><em> </em></p>
        	                <div class="liLinkSI">
        	                <p class="OrselectOS" style="padding-left:13px;width:auto">Hoặc sử dụng Tài Khoản của DiaDiem</a>
        	               
        	                </div>
        	            </div>
        	            <i  class="bl_SIO"></i >
        	            <i  class="ct_SIO"></i >

        	            <i  class="br_SIO"></i >
        	        </div>  
                          <%}%>
                      </div>
                    <div class="div_BotCom"></div>
                </div>
            </div>
           <%}%>